setTimeout(function () {
  console.log("1");
});
new Promise(function (resolve) {
  console.log("2");
  setTimeout(function () {
    console.log(3);
  });
  resolve();
  console.log(4);
}).then(function () {
  console.log("5");
});
console.log("6");
function fn1() {
  console.log("7");
  fn2();
}
function fn2() {
  console.log("8");
}
fn1();
